package com.cweb.framework.generator;

import lombok.Data;

/**
 * 代码生成的配置
 */
@Data
public class GenSetting {
    // 数据库连接相关配置
    private String dbUrl;
    private String dbUsername;
    private String dbPassword;
    // 文件名
    private String moduleName;
    // 文件输出判断
    private boolean outController = true;
    private boolean outEntity = true;
    private boolean outMapper = true;
    private boolean outXml = true;
    private boolean outService = false;
    private boolean outServiceImpl = true;
    // 作者
    private String author = "changfan";
    // 输出
    private String path;

    // 构造
    public GenSetting(String dbUrl, String dbUsername, String dbPassword, String path) {
        this.dbUrl = dbUrl;
        this.dbUsername = dbUsername;
        this.dbPassword = dbPassword;
        this.path = path;
    }
}
